﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000DF3 RID: 3571
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RelicAffix : IMessage<RelicAffix>, IMessage, IEquatable<RelicAffix>, IDeepCloneable<RelicAffix>, IBufferMessage
	{
		// Token: 0x17002D56 RID: 11606
		// (get) Token: 0x0600A046 RID: 41030 RVA: 0x001AC920 File Offset: 0x001AAB20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RelicAffix> Parser
		{
			get
			{
				return RelicAffix._parser;
			}
		}

		// Token: 0x17002D57 RID: 11607
		// (get) Token: 0x0600A047 RID: 41031 RVA: 0x001AC927 File Offset: 0x001AAB27
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RelicAffixReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002D58 RID: 11608
		// (get) Token: 0x0600A048 RID: 41032 RVA: 0x001AC939 File Offset: 0x001AAB39
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RelicAffix.Descriptor;
			}
		}

		// Token: 0x0600A049 RID: 41033 RVA: 0x001AC940 File Offset: 0x001AAB40
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RelicAffix()
		{
		}

		// Token: 0x0600A04A RID: 41034 RVA: 0x001AC948 File Offset: 0x001AAB48
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RelicAffix(RelicAffix other) : this()
		{
			this.affixId_ = other.affixId_;
			this.cnt_ = other.cnt_;
			this.step_ = other.step_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600A04B RID: 41035 RVA: 0x001AC985 File Offset: 0x001AAB85
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RelicAffix Clone()
		{
			return new RelicAffix(this);
		}

		// Token: 0x17002D59 RID: 11609
		// (get) Token: 0x0600A04C RID: 41036 RVA: 0x001AC98D File Offset: 0x001AAB8D
		// (set) Token: 0x0600A04D RID: 41037 RVA: 0x001AC995 File Offset: 0x001AAB95
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AffixId
		{
			get
			{
				return this.affixId_;
			}
			set
			{
				this.affixId_ = value;
			}
		}

		// Token: 0x17002D5A RID: 11610
		// (get) Token: 0x0600A04E RID: 41038 RVA: 0x001AC99E File Offset: 0x001AAB9E
		// (set) Token: 0x0600A04F RID: 41039 RVA: 0x001AC9A6 File Offset: 0x001AABA6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Cnt
		{
			get
			{
				return this.cnt_;
			}
			set
			{
				this.cnt_ = value;
			}
		}

		// Token: 0x17002D5B RID: 11611
		// (get) Token: 0x0600A050 RID: 41040 RVA: 0x001AC9AF File Offset: 0x001AABAF
		// (set) Token: 0x0600A051 RID: 41041 RVA: 0x001AC9B7 File Offset: 0x001AABB7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Step
		{
			get
			{
				return this.step_;
			}
			set
			{
				this.step_ = value;
			}
		}

		// Token: 0x0600A052 RID: 41042 RVA: 0x001AC9C0 File Offset: 0x001AABC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RelicAffix);
		}

		// Token: 0x0600A053 RID: 41043 RVA: 0x001AC9D0 File Offset: 0x001AABD0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RelicAffix other)
		{
			return other != null && (other == this || (this.AffixId == other.AffixId && this.Cnt == other.Cnt && this.Step == other.Step && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600A054 RID: 41044 RVA: 0x001ACA2C File Offset: 0x001AAC2C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.AffixId != 0U)
			{
				num ^= this.AffixId.GetHashCode();
			}
			if (this.Cnt != 0U)
			{
				num ^= this.Cnt.GetHashCode();
			}
			if (this.Step != 0U)
			{
				num ^= this.Step.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600A055 RID: 41045 RVA: 0x001ACA9D File Offset: 0x001AAC9D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600A056 RID: 41046 RVA: 0x001ACAA5 File Offset: 0x001AACA5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600A057 RID: 41047 RVA: 0x001ACAB0 File Offset: 0x001AACB0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.AffixId != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.AffixId);
			}
			if (this.Cnt != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Cnt);
			}
			if (this.Step != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.Step);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600A058 RID: 41048 RVA: 0x001ACB24 File Offset: 0x001AAD24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.AffixId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AffixId);
			}
			if (this.Cnt != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Cnt);
			}
			if (this.Step != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Step);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600A059 RID: 41049 RVA: 0x001ACB94 File Offset: 0x001AAD94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RelicAffix other)
		{
			if (other == null)
			{
				return;
			}
			if (other.AffixId != 0U)
			{
				this.AffixId = other.AffixId;
			}
			if (other.Cnt != 0U)
			{
				this.Cnt = other.Cnt;
			}
			if (other.Step != 0U)
			{
				this.Step = other.Step;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600A05A RID: 41050 RVA: 0x001ACBF8 File Offset: 0x001AADF8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600A05B RID: 41051 RVA: 0x001ACC04 File Offset: 0x001AAE04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 16U)
					{
						if (num != 24U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.Step = input.ReadUInt32();
						}
					}
					else
					{
						this.Cnt = input.ReadUInt32();
					}
				}
				else
				{
					this.AffixId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04003DD2 RID: 15826
		private static readonly MessageParser<RelicAffix> _parser = new MessageParser<RelicAffix>(() => new RelicAffix());

		// Token: 0x04003DD3 RID: 15827
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003DD4 RID: 15828
		public const int AffixIdFieldNumber = 1;

		// Token: 0x04003DD5 RID: 15829
		private uint affixId_;

		// Token: 0x04003DD6 RID: 15830
		public const int CntFieldNumber = 2;

		// Token: 0x04003DD7 RID: 15831
		private uint cnt_;

		// Token: 0x04003DD8 RID: 15832
		public const int StepFieldNumber = 3;

		// Token: 0x04003DD9 RID: 15833
		private uint step_;
	}
}
